package war2100.entity.help;

import java.awt.Image;
import war2100.Prototypes;
import war2100.entity.Entity;
import war2100.entity.Map;

public abstract class BasicHelpEntity extends Entity {
	protected Map map;
	/**
	 * ist je nach Wahl ingame dann unsichtbar und nur im Editor sichtbar
	 */
	protected boolean isVisible;

	public BasicHelpEntity(float x, float y, boolean isVisible, Map map, Prototypes prototypes) {
		super(x, y, prototypes);
		this.map = map;
		this.isVisible = isVisible;
	}

	public BasicHelpEntity(BasicHelpEntity e, Map map, Prototypes prototypes) {
		this(e.getX(), e.getY(), e.isVisible(), map, prototypes);
	}

	public void render(java.awt.Graphics g, int x, int y, int width, int height) {
		g.drawImage(getImage(), x, y, width, height, null);
	}

	public void render(org.newdawn.slick.Graphics g, int x, int y, int width, int height) {
		getSlickImage().draw(x, y, width, height);
	}

	public abstract Image getImage();

	public abstract org.newdawn.slick.Image getSlickImage();

	public boolean isVisible() {
		return isVisible;
	}

	public void setInvisible(boolean isVisible) {
		this.isVisible = isVisible;
	}

}
